package com.tj.collection.db.dao;

import com.fqgj.common.api.Page;
import com.fqgj.common.base.BaseMapper;
import com.tj.collection.db.entity.ClAgentsEntity;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: sm
 * Date: 2019-09-03
 * Time: 10:16
 */
public interface ClAgentsDao extends BaseMapper<ClAgentsEntity> {

    List<ClAgentsEntity> selectAgentListByParams(Map<String, Object> params);

    List<ClAgentsEntity> selectAgentListByMerchantCode(String merchantCode);

    List<ClAgentsEntity> selectAgentListByMerchantCode(String merchantCode, String stageCode, Page page);

    List<ClAgentsEntity> getActiveListByMerchantCode(String merchantCode);

    List<ClAgentsEntity> getActiveListByMerchantCode(String merchantCode, String stageCode);

    ClAgentsEntity getByAdminId(Integer adminId);

    ClAgentsEntity selectAgentByAdminIdAndStage(Integer adminId, String stageCode);

    int deleteById(Integer adminId);
}
